package com.gjy.reflect.cls;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-03-13 15:01:31
 */
public class HotSwapClassLoader extends ClassLoader {

    public HotSwapClassLoader() {
        super(HotSwapClassLoader.class.getClassLoader());
    }

    public Class<?> loadByte(byte[] classByte) {
        return defineClass(null, classByte, 0, classByte.length);
    }
}
